package thread;

public class ThreadStart {

	public static void main(String[] args) {
	/*	TreadDemo1 tread=new TreadDemo1();
		Thread t1=new Thread(tread,"1");
		t1.start();
		new Thread(tread,"2").start();
		new Thread(tread,"3").start();
		new Thread(tread,"4").start();
		new Thread(tread,"5").start();
		new Thread(tread,"6").start();
		new Thread(tread,"7").start();
		new Thread(tread,"8").start();
		new Thread(tread,"9").start();
		new Thread(tread,"10").start();
		new Thread(tread,"11").start();
		new Thread(tread,"12").start();
		new Thread(tread,"13").start();
		new Thread(tread,"14").start();
		new Thread(tread,"15").start();
		System.gc();*/
		Thread.currentThread().interrupt();
		System.out.println(Thread.currentThread().isInterrupted());
		System.out.println(Thread.currentThread().interrupted());
		System.out.println(Thread.currentThread().interrupted());
		System.out.println(Thread.currentThread().interrupted());
		System.out.println(Thread.currentThread().interrupted());
		System.out.println(Thread.currentThread().isInterrupted());
		/*try {
			Thread.sleep(10000);
			System.out.println(t1.isAlive());
		} catch (InterruptedException e) {
			
			e.printStackTrace();
		}*/
	}

}
